package com.cqemme.activitiservice.feign;

import com.cqemme.activitiservice.feign.fallback.EsFeignFallback;
import com.cqemme.comm.po.PutDocPo;
import com.cqemme.comm.po.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 熊涛涛 - es服务
 *
 * @author daibin
 */
@FeignClient(value = "elasticsearch-service", fallback = EsFeignFallback.class)
public interface EsFeign {

    /**
     * 赛数据进es中
     *
     * @param map
     * @return
     */
    @RequestMapping(value = "/putdoc/add", method = RequestMethod.POST)
    Result putdocAdd(@RequestBody PutDocPo map);

}
